<?php
class Stuinfoall_ctl extends Ctl{
    function __construct(){
    }
    function main(array $getVars) {
        $this::sessver();
        $type=!empty($_POST['type'])?$_POST['type']:false;
        if(!$type){
            $result=xdb::getInstance()->getarray('select * from students');
            $this::show('stuinfoall',compact('result'));
        }else{
        
        }
    }
}